const log = require('electron-log');
const path = require("path");
let date = new Date()
date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
log.transports.file.fileName = date + '.log' // 创建文件名格式为 '时间.log' (2023-02-01.log)
log.transports.file.resolvePath  = ()=>path.resolve(process.env.INIT_CWD,"logs",log.transports.file.fileName);

module.exports=log